package com.xspace.android.imcommon.interfaces;

import android.os.Parcel;
import android.os.Parcelable;

import com.xspace.android.imcommon.entity.Friend;

public class FriendAidl implements Parcelable {
	public Friend info;

	public FriendAidl(Friend info) {
		super();
		this.info = info;

	}

	public FriendAidl(Parcel in) {
		readFromParcel(in);

	}

	protected void readFromParcel(Parcel in) {
		info = (Friend) in.readSerializable();
	}

	@Override
	public void writeToParcel(Parcel parcel, int flags) {
		parcel.writeSerializable(info);
	}

	@Override
	public int describeContents() {
		return 0;
	}

	public static final Creator<FriendAidl> CREATOR = new Creator<FriendAidl>() {
		public FriendAidl createFromParcel(Parcel in) {
			return new FriendAidl(in);
		}

		public FriendAidl[] newArray(int size) {
			return new FriendAidl[size];
		}
	};
}
